package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.TransCtrTypeDao;
import com.home.qh.model.TransCtrType;
import com.home.qh.service.TransCtrTypeManager;

/**
 * Implementation of RoleManager interface.
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler</a>
 */
@Service("transCtrTypeManager")
public class TransCtrTypeManagerImpl extends GenericManagerImpl<TransCtrType, Long> implements TransCtrTypeManager {
	TransCtrTypeDao transCtrTypeDao;

    @Autowired
    public TransCtrTypeManagerImpl(TransCtrTypeDao transCtrTypeDao) {
        super(transCtrTypeDao);
        this.transCtrTypeDao = transCtrTypeDao;
    }

	public List<TransCtrType> getTransCtrTypeByCodeAndName(String transCtrTypeCode,
			String transCtrTypeName) {
		return transCtrTypeDao.getTransCtrTypeByCodeAndName(transCtrTypeCode, transCtrTypeName);
	}

	public List<TransCtrType> getTransCtrTypeByTransCtrType(TransCtrType transCtrType, String sort, boolean desc, int startResult, int maxResults) {
		return transCtrTypeDao.getTransCtrTypeByTransCtrType(transCtrType, sort, desc, startResult, maxResults);
	}

}